package cn.cocho.custom.yunCashierDf.interceptor;


import cn.cocho.custom.yunCashierDf.cache.CacheCtrl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created with IntelliJ I  DEA.
 * User: keqiaokeji
 * Date: 14-5-18
 * Time: 下午10:13
 * To change this template use File | Settings | File Templates.
 */
@Repository
public class CustomerInterceptor extends HandlerInterceptorAdapter {

    @Autowired
    CacheCtrl cacheCtrl;



    /**
     * 拦截处理
     *
     * @param request  请求信息
     * @param response 响应信息
     * @param handler  代理
     * @return false：未通过拦截器，不再继续往下走，true：通过了拦截器，将会继续往下走
     * @throws Exception
     */
    @Override
    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
        return true;//通过拦截器
    }
}
